﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace MetroApp.Web.UserControls
{
    public class IconButton : Button
    {
        /// <summary>
        /// propdp
        /// </summary>

        //propdp + tab 依赖注入

        //public Drawing Icon
        //{
        //    get => (Drawing)GetValue(IconProperty);
        //    set => SetValue(IconProperty, value);
        //}

        //// Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        //public static readonly DependencyProperty IconProperty =
        //    DependencyProperty.Register("Icon", typeof(Drawing), typeof(IconButton), new PropertyMetadata(null));


        public ImageSource Icon
        {
            get => (ImageSource)GetValue(IconProperty);
            set => SetValue(IconProperty, value);
        }

        // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IconProperty =
            DependencyProperty.Register("Icon", typeof(ImageSource), typeof(IconButton), new PropertyMetadata(null));


    }
}
